package me.chan.methodReference;

public class Apple {

	private String color;
	private int weight;
	
	public Apple() {
	}
	
	public Apple(int weight) {
		this.weight = weight;
	}
	
	public Apple(int weight, String color) {
		this.weight  = weight;
		this.color = color;
	}
	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	
	public Apple(String color, int weight) {
		this.color = color;
		this.weight = weight;
	}
	
	public String toString() {
        return "Apple{" +
               "color='" + color + '\'' +
               ", weight=" + weight +
               '}';
	}
	
}
